package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.RequestManager;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.CustomerServiceByUserIdAndOrderIdModel;
import com.jl.jlapp.eneity.CustomerServiceByUserIdAndOrderIdModel.ResultDataBean.AfterSalePicsBean;

import java.util.List;

public class AfterSaleImgAdapter
        extends BaseQuickAdapter<AfterSalePicsBean, BaseViewHolder> {
    public AfterSaleImgAdapter(@LayoutRes int paramInt, @Nullable List<AfterSalePicsBean> paramList) {
        super(paramInt, paramList);
    }

    protected void convert(BaseViewHolder paramBaseViewHolder, AfterSalePicsBean paramAfterSalePicsBean) {
        ImageView localImageView = (ImageView) paramBaseViewHolder.getView(R.id.img);
        if ((paramAfterSalePicsBean == null)) {
            Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)).load(R.drawable.img_noimg_xs).into(localImageView);
            return;
        }
        String picUrl = paramAfterSalePicsBean.getPicUrl();
        Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_lose_xss).error(R.drawable.img_lose_xs)).load("http://117.158.178.202:8001/JLMIS/" + picUrl).into(localImageView);
        paramBaseViewHolder.addOnClickListener(R.id.img);
    }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/AfterSaleImgAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */